// 获取
function getLocal (key = 'token') {
  return window.localStorage.getItem(key)
}

// 保存token
function setLocal (key, value) {
  window.localStorage.setItem(key, value)
}

// 删除token
function removeLocal (key = 'token') {
  window.localStorage.removeItem(key)
}

// 按需导出
export { getLocal, setLocal, removeLocal }
